package com.cen.cloud.service;

import com.cen.cloud.dao.DeptDao;
import com.cen.cloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author cen
 * @Date 2020/10/4 16:29
 */
@Service
public class DeptServiceImpl implements DeptService{
    @Autowired
    private DeptDao deptDao;
    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public List<Dept> getAll() {
        return deptDao.getAll();
    }

    @Override
    public Dept getByID(long deptno) {
        return deptDao.getByID(deptno);
    }
}
